package com.xxl.job.admin.controller.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Author: Zhihj
 * @Date: 2023-10-12 21:37:53
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface PermissionLimit {
    /**
     * 录拦截 (默认拦截)
     * @return
     */
    boolean limit() default true;

    /**
     * 要求管理员权限
     * @return
     */
    boolean adminuser() default false;
}
